<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<div id="easyui-title" style="display:none">
	工资录入
</div>
<script type="text/javascript">
$(function(){
	//选择人员
	$('#cname').bind('click',function(){
		CQOA.load('targetPopup',ctx + '/sm/User!userSelect.action',{},function(){
				showHideFun('targetPopup','open');
				$('#operationOne').val('1');
		});
	});
	
	$('#workSave').bind('click',function(){
		CQOA.formSubmit($('#workOperateForm'),ctx+'/pof/WorkMgmt!save.action',function(o){
			if(o.success){
				comeback();
				$('#workMgmgGrid').datagrid('reload');
			}
			$.messager.show({
				msg : o.msg
			});
		},{});
	});
		
});
CQOA.targetPopup = function(rows,option){
	var userIds=rows[0].id;
	var userNames=rows[0].text;
	if (userIds.substr(0,1)=='u') {
		userIds=userIds.substr(1);
	}
	$('#userId').val(userIds);
	$('#cname').val(userNames);
	$('#email').val(rows[0].email);
	$('#mobile').val(rows[0].mobile);
};

</script>
<div style="height: 30px;text-align: center;">
	<a href="#" class="easyui-linkbutton" iconCls="icon-back" onclick="comeback();">返回</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" id="workSave">保存</a>
</div>
<s:form id="workOperateForm">
<div style="overflow: auto;">
<s:hidden id="workId" name="entity.sid"></s:hidden>
<table class="dataTable" >
	<tr>
		<td width="80px">姓名:</td>
		<td width="80%" colspan="3">
		<s:hidden name="entity.userId" id="userId"></s:hidden>
		<s:hidden name="entity.email" id="email"></s:hidden>
		<s:hidden name="entity.mobile" id="mobile"></s:hidden>
		<s:textfield id="cname" name="entity.cname"  cssClass="easyui-validatebox" style="width:80%"  validType="length[1,200]" readonly="true" notnull="true" />
		</td>
	</tr>
	<tr>
		<td width="80px">工资日期:</td>
		<td width="30%" >
		<s:textfield  name="entity.sendTime"  cssClass="easyui-datetimebox" style="width:140px;"  notnull="true" />
		</td>
		<td width="80px">工资:</td>
		<td width="30%"><s:textfield name="entity.payMoney"  cssClass="easyui-validatebox" style="width:80%" validType="money" notnull="true"/></td>
	</tr>
	<tr>
		<td width="80px">绩效:</td>
		<td width="30%"><s:textfield name="entity.payMangce"  cssClass="easyui-validatebox" style="width:80%" validType="money" /></td>
		<td width="80px">其他:</td>
		<td width="30%"><s:textfield name="entity.payOther"  cssClass="easyui-validatebox" style="width:80%" validType="money" /></td>
	</tr>
	<tr>
		<td width="80px">半年奖:</td>
		<td width="30%"><s:textfield name="entity.payHalfYear"  cssClass="easyui-validatebox" style="width:80%" validType="money" /></td>
		<td width="80px">年终奖:</td>
		<td width="30%"><s:textfield name="entity.payYear"  cssClass="easyui-validatebox" style="width:80%" validType="money" /></td>
	</tr>
	<tr>
		<td width="80px">扣金额:</td>
		<td width="30%"><s:textfield name="entity.feeChange"  cssClass="easyui-validatebox" style="width:80%" validType="money" /></td>
		<td width="80px">合计:</td>
		<td width="30%"><s:textfield name="entity.payAll"  cssClass="easyui-validatebox" style="width:80%" validType="money" notnull="true"/></td>
	</tr>
	<tr>
		<td width="80px">描述:</td>
		<td width="80%" colspan="3"><s:textarea name="entity.msg" rows="5"  cssClass="easyui-validatebox" style="width:80%" validType="length[1,400]" /></td>
	</tr>
	
	
</table>
</div>
</s:form>